package com.ljfiction.book.http;

/**
 * Created by Administrator on 2017/7/29.
 */

public class UserBean {
    /**
     * userId : 3
     * userName : 15925655884
     * pseudonym : 15925655884
     * userPassword : null
     * userSex : 0
     * userAge : 0
     * userPhone : 15925655884
     * userQQ : 34376164
     * userWeChat : ZQ_FISHBONE
     * userSina : 123456
     * userAddress : 浙江省杭州市
     * userBorndate : 1501293494000
     * userCreateDate : 1501293494000
     * userEmail : 34376164@qq.com
     * userHeadPortraitURL : /bookCover/defaultCover.jpg
     * userState : 0
     * userIpAddress : 60.176.5.174
     * userAutograph : 当时明月在，曾照彩云归
     * userRemarks : "wap"
     * lastLogTime : 1501243278000
     * nowLoginTime : 1501293494000
     * loginCount : 37
     * integration : 0
     * userMoney : 0
     * userRecommendTicket : 10
     * userGoldenTicket : 10
     * userReadTicket : 10
     * hastenUpdateTicket : 10
     * carId : null
     * leavCard: 0
     * bankCardAccount : null
     * bankName : null
     * isAuthor : 1
     * userGrade : 0
     * vipGrade : 0
     * isSecrecy : 0
     * userCode : LG20180608000
     * userCode : null
     * constellation : null
     * authorGrade : 0
     */
    private int userId;//用户id
    private String userName;//用户名称
    private String pseudonym;//用户昵称
    private String userPassword;//用户密码
    private int userSex;//用户性别
    private int userAge;//用户年龄
    private String userPhone;//用户手机
    private String userQQ;//用户QQ
    private String userWeChat;//用户微信
    private String userSina;//用户新浪账号
    private String userAddress;//用户地址
    private long userBorndate;//用户生日
    private long userCreateDate;//账户创建时间
    private String userEmail;//用户邮箱
    private String userHeadPortraitURL;//用户头像路径
    private int userState;//用户帐号状态
    private String userIpAddress;//用户ip地址
    private String userAutograph;//用户个性签名
    private String userRemarks;//用户备注
    private long lastLogTime;//用户最后登录时间
    private long nowLoginTime;//用户登陆时间
    private int loginCount;//用户登录次数
    private int integration=0;//用户积分
    private int userMoney=0;//用户辣鸡币
    private int userRecommendTicket=0;//推荐票
    private int userGoldenTicket=0;//用户金票
    private int userReadTicket=0;//阅读币
    private int hastenUpdateTicket=0;//催更票
    private String carId;//身份证号码
    private String bankCardAccount;//银行卡号
    private String bankName;//银行名字
    private int isAuthor;//是否作者
    private int userGrade=0;//用户等级
    private int vipGrade;//VIP等级
    private int isSecrecy;//信息是否保密
    private String userCode;//渠道标识
    private String constellation;//星座
    private int authorGrade;//作者等级
    private int topSource;//当前等级所需积分
    private int downSource;//下一等所需级积分
    private int sTR=0;//是否今天第一次登陆
    private int leaveCard;//请假卡剩余量
    private String token;//登陆标识

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public int getLeaveCard() {
        return leaveCard;
    }

    public void setLeaveCard(int leaveCard) {
        this.leaveCard = leaveCard;
    }

    public int getsTR() {
        return sTR;
    }

    public void setsTR(int sTR) {
        this.sTR = sTR;
    }

    public int getDownSource() {
        return downSource;
    }

    public void setDownSource(int downSource) {
        this.downSource = downSource;
    }

    public int getTopSource() {
        return topSource;
    }

    public void setTopSource(int topSource) {
        this.topSource = topSource;
    }





    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPseudonym() {
        return pseudonym;
    }

    public void setPseudonym(String pseudonym) {
        this.pseudonym = pseudonym;
    }

    public String getUserPassword() {
        return userPassword;
    }

    public void setUserPassword(String userPassword) {
        this.userPassword = userPassword;
    }
public int getUserSexInt(){
    return userSex;
}
    public String getUserSex() {
        if (userSex==0){
            return "男";
        }
        return "女";
    }

    public void setUserSex(int userSex) {
        this.userSex = userSex;
    }

    public int getUserAge() {
        return userAge;
    }

    public void setUserAge(int userAge) {
        this.userAge = userAge;
    }

    public String getUserPhone() {

        return (userPhone==null||userPhone.equals("")||userPhone.equals("0")||userPhone.equals("9527"))?"0":userPhone;
    }

    public void setUserPhone(String userPhone) {
        this.userPhone = userPhone;
    }

    public String getUserQQ() {
        return userQQ;
    }

    public void setUserQQ(String userQQ) {
        this.userQQ = userQQ;
    }

    public String getUserWeChat() {
        return userWeChat;
    }

    public void setUserWeChat(String userWeChat) {
        this.userWeChat = userWeChat;
    }

    public String getUserSina() {
        return userSina;
    }

    public void setUserSina(String userSina) {
        this.userSina = userSina;
    }

    public String getUserAddress() {
        return userAddress;
    }

    public void setUserAddress(String userAddress) {
        this.userAddress = userAddress;
    }

    public long getUserBorndate() {
        return userBorndate;
    }

    public void setUserBorndate(long userBorndate) {
        this.userBorndate = userBorndate;
    }

    public long getUserCreateDate() {
        return userCreateDate;
    }

    public void setUserCreateDate(long userCreateDate) {
        this.userCreateDate = userCreateDate;
    }

    public String getUserEmail() {
        if(userEmail==null){
            return "未绑定邮箱";
        }
        if (userEmail.equals("0")){
            return "未绑定邮箱";
        }
        return userEmail;
    }

    public void setUserEmail(String userEmail) {
        this.userEmail = userEmail;
    }

    public String getUserHeadPortraitURL() {
        return userHeadPortraitURL;
    }

    public void setUserHeadPortraitURL(String userHeadPortraitURL) {
        this.userHeadPortraitURL = userHeadPortraitURL;
    }

    public int getUserState() {
        return userState;
    }

    public void setUserState(int userState) {
        this.userState = userState;
    }

    public String getUserIpAddress() {
        return userIpAddress;
    }

    public void setUserIpAddress(String userIpAddress) {
        this.userIpAddress = userIpAddress;
    }

    public String getUserAutograph() {
        return userAutograph;
    }

    public void setUserAutograph(String userAutograph) {
        this.userAutograph = userAutograph;
    }

    public String getUserRemarks() {
        return userRemarks;
    }

    public void setUserRemarks(String userRemarks) {
        this.userRemarks = userRemarks;
    }

    public long getLastLogTime() {
        return lastLogTime;
    }

    public void setLastLogTime(long lastLogTime) {
        this.lastLogTime = lastLogTime;
    }

    public long getNowLoginTime() {
        return nowLoginTime;
    }

    public void setNowLoginTime(long nowLoginTime) {
        this.nowLoginTime = nowLoginTime;
    }

    public int getLoginCount() {
        return loginCount;
    }

    public void setLoginCount(int loginCount) {
        this.loginCount = loginCount;
    }

    public int getIntegration() {
        return integration;
    }

    public void setIntegration(int integration) {
        this.integration = integration;
    }

    public int getUserMoney() {
        return userMoney;
    }

    public void setUserMoney(int userMoney) {
        this.userMoney = userMoney;
    }

    public int getUserRecommendTicket() {
        return userRecommendTicket;
    }

    public void setUserRecommendTicket(int userRecommendTicket) {
        this.userRecommendTicket = userRecommendTicket;
    }

    public int getUserGoldenTicket() {
        return userGoldenTicket;
    }

    public void setUserGoldenTicket(int userGoldenTicket) {
        this.userGoldenTicket = userGoldenTicket;
    }

    public int getUserReadTicket() {
        return userReadTicket;
    }

    public void setUserReadTicket(int userReadTicket) {
        this.userReadTicket = userReadTicket;
    }

    public int getHastenUpdateTicket() {
        return hastenUpdateTicket;
    }

    public void setHastenUpdateTicket(int hastenUpdateTicket) {
        this.hastenUpdateTicket = hastenUpdateTicket;
    }

    public String getCarId() {
        return carId;
    }

    public void setCarId(String carId) {
        this.carId = carId;
    }

    public String getBankCardAccount() {
        return bankCardAccount;
    }

    public void setBankCardAccount(String bankCardAccount) {
        this.bankCardAccount = bankCardAccount;
    }

    public String getBankName() {
        return bankName;
    }

    public void setBankName(String bankName) {
        this.bankName = bankName;
    }

    public int getIsAuthor() {
        return isAuthor;
    }

    public void setIsAuthor(int isAuthor) {
        this.isAuthor = isAuthor;
    }

    public int getUserGrade() {
        return userGrade;
    }

    public void setUserGrade(int userGrade) {
        this.userGrade = userGrade;
    }

    public int getVipGrade() {
        return vipGrade;
    }

    public void setVipGrade(int vipGrade) {
        this.vipGrade = vipGrade;
    }

    public int getIsSecrecy() {
        return isSecrecy;
    }

    public void setIsSecrecy(int isSecrecy) {
        this.isSecrecy = isSecrecy;
    }

    public String getUserCode() {
        if (userCode==null){
            userCode="LG20180608000";

        }
        return userCode;
    }

    public void setUserCode(String userCode) {
        this.userCode = userCode;
    }

    public String getConstellation() {
        return constellation;
    }

    public void setConstellation(String constellation) {
        this.constellation = constellation;
    }

    public int getAuthorGrade() {
        return authorGrade;
    }

    public void setAuthorGrade(int authorGrade) {
        this.authorGrade = authorGrade;
    }
}
